//
//  CategoryEventView.h
//  eticket
//
//  Created by AnhQuocNguyen on 4/14/13.
//  Copyright (c) 2013 SoinMedia. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CategoryViewCell.h"
#import "CategoryEvent.h"
#import "MBProgressHUD.h"
#import "FinalFindEventView.h"
#import "ASIFormDataRequest.h"
@protocol categoryEventViewDelegate;
@interface CategoryEventView : UIView<UITableViewDelegate, UITableViewDataSource,EGORefreshTableHeaderDelegate, finalFindEventDelegate>{
    
    
    
    UITableView *_tblView;
    NSMutableArray *_arrayListData;
    
    
    //Pull to refesh
    EGORefreshTableHeaderView *refeshHeaderTableView;
    int addingDuration;
    BOOL _reloading;

    
    //Hud
    MBProgressHUD *mHud;
    BOOL mLoading;
    NSInteger _countTimeout;
    
    __block FinalFindEventView *_finalFindEvent;
    
    ASIFormDataRequest *requestServer;
    
}

@property (nonatomic, assign) id <categoryEventViewDelegate> categoryEventViewDelegate;

- (void)reloadData;

- (void)cancelRequest;

- (IBAction)btnCategoryView_ChangeMyticket_Clicked:(id)sender;
@end


@protocol categoryEventViewDelegate <NSObject>

@optional
- (void)categoryEventView:(CategoryEventView *)categoryEventView didSelected:(CategoryEvent *)categoryEvent;
- (void)categoryEventView:(CategoryEventView *)categoryEventView finalFindEventBack:(FinalFindEventView *)finalFindEvent;
- (void)categoryEventViewCancelRefeshData:(CategoryEventView *)categoryEventView;
- (void)categoryEventViewClickMyTicket:(CategoryEventView *)categoryEventView;
@end

